docs: Update Karpenter example to use region
argument in place of aliased AWS provider
#3538
+1
−7
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Updates the Karpenter example to use AWS Provider v6.0.0+ region attribute instead of aliased provider configurations. This change modernizes the configuration by:
aws.virginia
provider blockaws_ecrpublic_authorization_token
data source to use theregion
attribute directlyThe functionality remains identical, but the configuration now follows the modern AWS Provider v6 pattern for multi-region resource management.
Motivation and Context
AWS Provider v6.0.0 introduced the ability to specify the
region
attribute directly on individual resources and data sources, eliminating the need for multiple aliased provider configurations in many use cases.The current Karpenter example uses the pre-v6 pattern with aliased providers, which may confuse users migrating to v6 and doesn't demonstrate the simplified approach available in newer provider versions.
Fixes #3537
Breaking Changes
No breaking changes. This is a configuration modernization that maintains the same functionality:
us-east-1
regioneu-west-1
)How Has This Been Tested?
examples/*
to demonstrate and validate my change(s)examples/*
projectsterraform validate
terraform init
pre-commit run -a
on my pull request